package samples.groenefee;

import java.awt.*;
import java.applet.*;

/**
 * The Prisoner's Dilemma http://prisonersdilemma.groenefee.nl/
 *
 * @author Serge Helfrich 03-Aug-2002 (0.01 11-Feb-1998)
 * @version 0.20
 */
public class Pris00 extends Applet {
    double b = 1.85;
    double p = 0.1;
    int delay = 100; // increased for green thread support
    boolean paused;
    PrisCanv cv;
    PrisPan pn;

    public void init() {
        paused = false;
        Color bg = new Color(255, 255, 192);
        setBackground(bg);
//        setBackground(Color.black);
        setLayout(new BorderLayout());
        cv = new PrisCanv(this);
        add("Center", cv);
        pn = new PrisPan(this);
        add("North", pn);
    }

    public void stop() {
        cv.stop();
        remove(cv);
        remove(pn);
    }
}

   